]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Cover more node types in check-potfiles
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 4 Mar 2022 23:58:13 +0000 (00:58 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 5 Mar 2022 00:12:27 +0000 (00:12 +0000)
gjs enabled support for static class blocks and class fields, so
adjust the script to not trip over those nodes when we start
using them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2221>

.gitlab-ci/check-potfiles.js

index 28448f874c82817521fefb35d75d78316870ed9c..0c8885e25c9124ceff34813e0ec7646054362318 100644 (file)
@@ -85,6 +85,10 @@ function nodesToWalk(node) {
     case 'BlockStatement':
     case 'Program':
         return node.body;
+    case 'StaticClassBlock':
+        return [node.body];
+    case 'ClassField':
+        return [node.name, node.init];
     case 'CallExpression':
     case 'NewExpression':
     case 'OptionalCallExpression':